import Home from '../page/home'
import Order from '../page/order'
import City from '../page/city'
import Detail from '../page/detail'


import List from '../page/home/list'
import Car from '../page/home/car'


const routes = [{
  path: '/home',
  name: 'home',
  title: '首页',
  component: Home,
  children: [{
    path: '/home/list',
    name: 'list',
    title: '首页',
    component: List
  }, {
    path: '/home/car',
    name: 'car',
    title: '购物车',
    component: Car
  }]
},{
  path: '/order',
  name: 'order',
  title: '订单',
  component: Order
},{
  path: '/detail',
  name: 'detail',
  title: '详情',
  component: Detail
},{
  path: '/city',
  name: 'city',
  title: '位置',
  component: City
},{
  from: '/',
  to: '/home/list'
}]


export default routes